package com.itheima.anno;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Documented
@Target({FIELD})
@Constraint(validatedBy = { })
@Retention(RUNTIME)



public @interface State {
    //提供校验失败后的提示
    String message() default "sate参数的值只能是已发布或者草稿";
    //指定分组
    Class<?>[] groups() default {};
    //负载  获取到state注解的
    Class<? extends Payload>[] payload() default {};
}
